<?php

namespace App\Http\Queries;

use App\Models\Activity;
use Spatie\QueryBuilder\QueryBuilder;

class ActivityQuery extends QueryBuilder
{
    public function __construct()
    {
        parent::__construct(Activity::query());
        $this->allowedIncludes('prizes', 'vehicles');
        $this->allowedFilters([
            'title'
        ]);
        $this->defaultSort('order');
    }
}
